﻿using BaBaoFan.Modifier.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace BaBaoFan.Modifier.Service
{
    public interface INavigationService
    {
        bool AddNavigationInfo(NavigationInfoEntity navigationInfo);
        bool UpdateNavigationInfo(NavigationInfoEntity navigationInfo);
        bool DeleteNavigationInfos(IEnumerable<int> ids);
        bool AddNavigationColumn(NavigationColumn navigationColumn);
        bool UpdateNavigationColumn(NavigationColumn navigationColumn);
        bool DeleteNavigationColumns(IEnumerable<int> ids);
        NavigationInfoEntity GetNavigationById(int id);
        NavigationColumn GetNavigationColumnById(int id);
        IEnumerable<NavigationInfo> GetAllNavigationInfo();
        /// <summary>
        /// 获取所有栏目
        /// </summary>
        /// <returns></returns>
        IEnumerable<NavigationColumn> GetAllClasses();
        IEnumerable<NavigationInfo> GetAllParentNavigation();
        IEnumerable<NavigationColumn> GetAllNavigationColumn();
        IEnumerable<NavigationInfo> Search(NavigationCondition navigationCondition);
        IEnumerable<NavigationInfo> GetNavigationByColumnId(NavigationCondition navigationCondition);
    }
}
